package com.pxxy.mapper;

import com.pxxy.entity.TeachRecord;

import java.io.Serializable;
import java.util.List;

public interface TeachRecordMapper {

    int save(TeachRecord record);

    /****
     * 查询出此条上课记录时，级联把所属的老师也查询出来
     * @param id
     * @return
     */
    TeachRecord findById(Serializable id);

    List<TeachRecord> findByTeacher(Serializable teacherId);
}
